package com.basics.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author shuai.wang02@hand-china.com
 * @version 1.0
 * @description
 * @date 2018/7/21 16:07
 */
public  class BaseDTO {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creationDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpadateDate;
    private String comments;

    public BaseDTO() {
    }

    @Override
    public String toString() {
        return "BaseDTO{" +
                "creationDate=" + creationDate +
                ", lastUpadateDate=" + lastUpadateDate +
                ", comments='" + comments + '\'' +
                '}';
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Date getLastUpadateDate() {
        return lastUpadateDate;
    }

    public void setLastUpadateDate(Date lastUpadateDate) {
        this.lastUpadateDate = lastUpadateDate;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }
}
